package com.demo.function.mybatisplus;

public class UserHolder {
    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void set(Long tenantId) {
        threadLocal.set(tenantId);
    }

    public static Long get() {
        return threadLocal.get();
    }
}
